<include file="Public:header"/>
<script type="text/javascript" src="__WEBPUBLIC__/Admin/js/menu.simpla.jquery.js"></script>
    <div id="sidebar" class="sidebar" style="overflow-y: scroll;">
        <div class="sidebar-inner">
            <ul class="nav nav-list" id="left-menu">
                <li>
                    <a href="{:U('Member/memberList')}" target="main"  class="nav-top-item no-submenu active">
                        <span class="icon glyphicon glyphicon-home"></span>
                        <span class="hidden-minibar">首页</span>
                    </a>
                </li>
                <li>
                    <a href="javascript:;" class="nav-top-item">
                        <span class="icon glyphicon glyphicon-user"></span>
                        <span class="hidden-minibar">用户信息</span>
                        <span class="arrow glyphicon glyphicon-chevron-down"></span>
                    </a>
                    <ul>
                        <if condition="in_array('Member/memberList',$action_admin)">
                            <li>
                                <a href="{:U('Member/memberList')}" target="main">用户列表</a>
                            </li>
                        </if>
                    </ul>
                </li>



                
                <li>
                    <a href="javascript:;" class="nav-top-item">
                        <span class="icon glyphicon glyphicon-qrcode"></span>
                        <span class="hidden-minibar">微信相关</span>
                        <span class="arrow glyphicon glyphicon-chevron-down"></span>
                    </a>
                    <ul>
                        <if condition="in_array('WeiXinArticle/menuList',$action_admin)">
                            <li>
                                <a href="{:U('WeiXinArticle/menuList')}" target="main">微信菜单</a>
                            </li>
                        </if>
                        <!--
                        <if condition="in_array('WeiXinArticle/menuList',$action_admin)">
                            <li>
                                <a href="{:U('Wechat/materList')}" target="main">微信素材</a>
                            </li>
                        </if>
                        <if condition="in_array('WeiXinArticle/returnList',$action_admin)">
                            <li>
                                <a href="{:U('WeiXinArticle/returnList')}" target="main">文本回复</a>
                            </li>
                        </if>
                        <if condition="in_array('WeiXinArticle/wechatList',$action_admin)">
                            <li>
                                <a href="{:U('WeiXinArticle/wechatList')}" target="main">图文回复</a>
                            </li>
                        </if>
                        <if condition="in_array('Wechat/codeList',$action_admin)">
                            <li>
                                <a href="{:U('Wechat/codeList')}" target="main">场景二维码</a>
                            </li>
                        </if>
                        -->
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</body>
</html>
<script>
    function manage(){
        $(document).ready(function(){
            $("ul").each(function(){
                if($.trim($(this).html()) == ""){
                    $(this).parent().remove();
                }
            });
        });
    }
    manage();
</script>